<template>
    <div class="wrapper">
        <swiper :options="swiperOption">    
            <swiper-slide v-for="item of swiperList" :key="item.id">
                <img class="swiper-img" :src="item.url" alt="">
            </swiper-slide>
            <div class="swiper-pagination"  slot="pagination"></div>
        </swiper>
    </div>
</template>

<script>
export default {
    name:'HomeSwiper',
    data(){
        return{
            swiperOption:{
                pagination:'.swiper-pagination',
                loop:true
            },
            swiperList:[{
                id:'0001',
                url:'http://img.zcool.cn/community/01d37a58a2911ca801219c77e20da0.jpg'
            },{
                id:'0002',
                url:'http://pic.58pic.com/58pic/17/29/26/54f56b90c41fa_1024.jpg'
            }]
        }
    }
}
</script>

<style lang="scss" scoped>
    .wrapper >>> .swiper-pagination-bullet-active{
        background: #fff !important;
    }
    .wrapper{
        overflow:hidden;
        width:100%;
        height:0;
        padding-bottom:31.25%;
        .swiper-img{
            width: 100%;
            height:31.25%
        }
    }
    
    
</style>
